package com.lx.video.web.feign;

import com.lx.bean.Result;
import com.lx.bilibili.entity.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Component
// 一个服务只能有一个接口
@FeignClient(name = "b-shopping", fallback = com.lx.video.web.feign.ProductActionImpl.class)
public interface ProductAction {

    @RequestMapping("/product/getProducts")
    Result getProducts();

    @RequestMapping("/product/getProductType")
    Result getProductType();


}
